<%@include file="/WEB-INF/pages/commons/commons.jsp"%>

<c:set var="selectedTab" value="Blogs" scope="request"/>
<fmt:message var="title" key="view_links.jsp.title" scope="request"/>
<stripes:layout-render name="${_themePath}/basic-layout-without-navbar.jsp" _title="${title}">


    <stripes:layout-component name="_topNav">
            <H1>Blog Management</H1>
            <UL class="gc-topnav-tabs">
                <LI>&nbsp;</LI>
            </UL>
    </stripes:layout-component>

    <stripes:layout-component name="_content">

        <div id="display">
            </div>

        <h2>Links</h2>
        <jsecurity:lacksPermission name="blog:viewLinks:${actionBean.blog.id}">
            No "blog:viewLinks:${actionBean.blog.id}" permission
        </jsecurity:lacksPermission>

        <jsecurity:hasPermission name="blog:viewLinks:${actionBean.blog.id}">
            <stripes:errors />
            <div id="table">
                <%@include file="view_links_table.jsp" %>
            </div>
        </jsecurity:hasPermission>

    </stripes:layout-component>
</stripes:layout-render>
